package org.example.frw.verify;

import lombok.extern.slf4j.Slf4j;
import org.example.frw.exception.InvalidParamException;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class DefaultVerifyClass implements DoVerify{
    public void verify(Object... t) throws InvalidParamException {
        log.info("开始参数检查...");
        for(Object o: t){
            ValidateUtil.INSTANCE.validate(o);
        }
        log.info("参数结束");
    }
}
